const popup = {
	showToast(options = {}) {
		if (typeof options === 'string') {
			let title = options
			options = {
				title
			}
		}
		uni.showToast(Object.assign({
			title: '提示',
			icon: 'none',
			success(res) {
				if (typeof options.cb === 'function') {
					setTimeout(() => {
						options.cb(res)
					}, options.duration || 1500)
				}
			}
		}, options))
	}
}
export default popup;